package com.raycloud.java.dada.util;

import java.io.InputStream;
import java.util.Properties;

/**
 * Created by hechuan on 2017/6/10.
 * 读取配置文件
 */
public class PropertiesReader {

    public static String getProperties(String key){
        Properties pop = new Properties();
        String value = "";
        try {

            InputStream in = PropertiesReader.class.getResourceAsStream("/resource/properties/platform.properties");
            pop.load(in);
            value = pop.getProperty(key);
            in.close();
        } catch (Exception e){
            e.printStackTrace();
        }

        return value;
    }


}
